/*
 * @Description:
 * @Author: duan_shuangjun 丶
 * @Date: 2024-09-16 20:13:40
 * @LastEditTime: 2024-09-17 10:52:16
 */
import http from '@/utils/http'

const apiFormData = {
  getCategoryList: '/desk/getCategoryList',
  foodCategory: '/shopFood/foodCategory',
  categoryReport: '/ticket/categoryReport'
}
// 获取桌面分类
export const getCategoryList = (data:any) => {
  return http({
    url: apiFormData.getCategoryList,
    method: 'post',
    data
  })
}
// 菜品分类显示
export const foodCategory = (data:any) => {
  return http({
    url: apiFormData.foodCategory,
    method: 'post',
    data,
    params: data
  })
}

export const categoryReport = (data:any) => {
  return http({
    url: apiFormData.categoryReport,
    method: 'post',
    data,
    params: data
  })
}
